package chapter4;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description:  六边形面积
 * Date:2021/4/2
 * ***************************************************************
 */
public class exc4_4 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		System.out.print("Enter the side: ");
		double s=input.nextDouble();
		
		System.out.printf("The area of the hexagon is %.2f", 6*s*s/(4*Math.tan(Math.PI/6)));
		
	}

}
